//
// Expection.cpp for  in /home/jousse_f//workspace/C++/abstractVM/old_parser/with_Ex
// 
// Made by florian jousseau
// Login   <jousse_f@epitech.net>
// 
// Started on  Mon Feb 13 09:52:13 2012 florian jousseau
// Last update Mon Feb 13 15:11:16 2012 florian jousseau
//

#include "Exception.hh"

AbstractEx::AbstractEx() : std::exception() {}

AbstractEx::AbstractEx(const std::string & i) : std::exception(), err(i) {}

AbstractEx::AbstractEx(const AbstractEx &other) : std::exception(), err(other.err) {}

AbstractEx::~AbstractEx() throw() {}

AbstractEx	&AbstractEx::operator=(const AbstractEx & other)
{
  if (this != &other)
    this->err = other.err;
  return (*this);
}

const char *	AbstractEx::what() throw ()
{
  return (this->err.c_str());
}
